package com.pick.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pick.admin.entity.SysPermission;
import com.pick.base.common.PageQuery;

/**
 * 系统权限服务接口
 */
public interface SysPermissionService extends IService<SysPermission> {

    /**
     * 分页查询权限列表
     */
    IPage<SysPermission> pagePermissions(PageQuery pageQuery);

    /**
     * 创建权限
     */
    boolean createPermission(SysPermission permission);

    /**
     * 更新权限
     */
    boolean updatePermission(SysPermission permission);

    /**
     * 删除权限
     */
    boolean deletePermission(Long permissionId);
}